Skip to main content
Version: 5.2.0

toUtf8

Helper function that will convert HEX to UTF8.

Usage​

TronWeb.toUtf8(value);

Parameters​

ParameterDescriptionData Type
valueA hex stringString

Return​

String

Example​

> TronWeb.toUtf8("0x74657374");
> 'test'